.class public Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;
.super Landroid/view/ViewGroup;
.source "TranslucentDrawerLayout.java"

# interfaces
.implements Lcom/jecelyin/editor/v2/widget/b;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$b;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$a;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$d;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$e;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$i;,
        Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;
    }
.end annotation


# static fields
.field private static final H:[I

.field private static final I:Z

.field private static final J:Z

.field static final K:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;


# instance fields
.field private A:Ljava/lang/Object;

.field private B:Z

.field private C:Landroid/graphics/drawable/Drawable;

.field private D:Landroid/graphics/drawable/Drawable;

.field private E:Landroid/graphics/drawable/Drawable;

.field private F:Landroid/graphics/drawable/Drawable;

.field private final G:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Landroid/view/View;",
            ">;"
        }
    .end annotation
.end field

.field private final a:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$b;

.field private b:F

.field private c:I

.field private d:F

.field private e:Landroid/graphics/Paint;

.field private final f:Landroidx/customview/widget/ViewDragHelper;

.field private final g:Landroidx/customview/widget/ViewDragHelper;

.field private final h:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

.field private final i:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

.field private j:I

.field private k:Z

.field private l:Z

.field private m:I

.field private n:I

.field private o:I

.field private p:I

.field private q:Z

.field private r:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field private s:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;",
            ">;"
        }
    .end annotation
.end field

.field private t:F

.field private u:F

.field private v:Landroid/graphics/drawable/Drawable;

.field private w:Landroid/graphics/drawable/Drawable;

.field private x:Landroid/graphics/drawable/Drawable;

.field private y:Ljava/lang/CharSequence;

.field private z:Ljava/lang/CharSequence;


# direct methods
.method static constructor <clinit>()V
    .locals 4

    const/4 v0, 0x1

    new-array v1, v0, [I

    const v2, 0x10100b3

    const/4 v3, 0x0

    aput v2, v1, v3

    .line 1
    sput-object v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->H:[I

    .line 2
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x13

    if-lt v1, v2, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    sput-boolean v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->I:Z

    .line 3
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x15

    if-lt v1, v2, :cond_1

    goto :goto_1

    :cond_1
    const/4 v0, 0x0

    :goto_1
    sput-boolean v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->J:Z

    .line 4
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, v2, :cond_2

    .line 5
    new-instance v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$d;

    invoke-direct {v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$d;-><init>()V

    sput-object v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->K:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;

    goto :goto_2

    .line 6
    :cond_2
    new-instance v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$e;

    invoke-direct {v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$e;-><init>()V

    sput-object v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->K:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;

    :goto_2
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 4

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    new-instance p2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$b;

    invoke-direct {p2, p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$b;-><init>(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;)V

    iput-object p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$b;

    const/high16 p2, -0x67000000

    .line 5
    iput p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->c:I

    .line 6
    new-instance p2, Landroid/graphics/Paint;

    invoke-direct {p2}, Landroid/graphics/Paint;-><init>()V

    iput-object p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e:Landroid/graphics/Paint;

    const/4 p2, 0x1

    .line 7
    iput-boolean p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->l:Z

    const/4 p3, 0x3

    .line 8
    iput p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->m:I

    .line 9
    iput p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->n:I

    .line 10
    iput p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->o:I

    .line 11
    iput p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->p:I

    const/4 v0, 0x0

    .line 12
    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->C:Landroid/graphics/drawable/Drawable;

    .line 13
    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->D:Landroid/graphics/drawable/Drawable;

    .line 14
    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->E:Landroid/graphics/drawable/Drawable;

    .line 15
    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->F:Landroid/graphics/drawable/Drawable;

    const/high16 v0, 0x40000

    .line 16
    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->setDescendantFocusability(I)V

    .line 17
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    const/high16 v1, 0x43c80000    # 400.0f

    mul-float v1, v1, v0

    .line 18
    new-instance v2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    invoke-direct {v2, p0, p3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;-><init>(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;I)V

    iput-object v2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    .line 19
    new-instance p3, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    const/4 v2, 0x5

    invoke-direct {p3, p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;-><init>(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;I)V

    iput-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    .line 20
    iget-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    const/high16 v2, 0x3f800000    # 1.0f

    invoke-static {p0, v2, p3}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;FLandroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper;

    move-result-object p3

    iput-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    .line 21
    invoke-virtual {p3, p2}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V

    .line 22
    iget-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p3, v1}, Landroidx/customview/widget/ViewDragHelper;->setMinVelocity(F)V

    .line 23
    iget-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    iget-object v3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p3, v3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;->setDragger(Landroidx/customview/widget/ViewDragHelper;)V

    .line 24
    iget-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    invoke-static {p0, v2, p3}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;FLandroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper;

    move-result-object p3

    iput-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    const/4 v2, 0x2

    .line 25
    invoke-virtual {p3, v2}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V

    .line 26
    iget-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p3, v1}, Landroidx/customview/widget/ViewDragHelper;->setMinVelocity(F)V

    .line 27
    iget-object p3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p3, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;->setDragger(Landroidx/customview/widget/ViewDragHelper;)V

    .line 28
    invoke-virtual {p0, p2}, Landroid/view/ViewGroup;->setFocusableInTouchMode(Z)V

    .line 29
    invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V

    .line 30
    new-instance p2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$a;

    invoke-direct {p2, p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$a;-><init>(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;)V

    invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V

    const/4 p2, 0x0

    .line 31
    invoke-static {p0, p2}, Landroidx/core/view/ViewGroupCompat;->setMotionEventSplittingEnabled(Landroid/view/ViewGroup;Z)V

    .line 32
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z

    move-result p2

    if-eqz p2, :cond_0

    .line 33
    sget-object p2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->K:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;

    invoke-interface {p2, p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;->a(Landroid/view/View;)V

    .line 34
    sget-object p2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->K:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;

    invoke-interface {p2, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;->a(Landroid/content/Context;)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    :cond_0
    const/high16 p1, 0x41200000    # 10.0f

    mul-float v0, v0, p1

    .line 35
    iput v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b:F

    .line 36
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->G:Ljava/util/ArrayList;

    return-void
.end method

.method static synthetic a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;)Landroid/view/View;
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f()Landroid/view/View;

    move-result-object p0

    return-object p0
.end method

.method private a(Landroid/view/View;Z)V
    .locals 4

    .line 33
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_3

    .line 34
    invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    if-nez p2, :cond_0

    .line 35
    invoke-virtual {p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v3

    if-eqz v3, :cond_1

    :cond_0
    if-eqz p2, :cond_2

    if-ne v2, p1, :cond_2

    :cond_1
    const/4 v3, 0x1

    .line 36
    invoke-static {v2, v3}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V

    goto :goto_1

    :cond_2
    const/4 v3, 0x4

    .line 37
    invoke-static {v2, v3}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V

    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_3
    return-void
.end method

.method private a(Landroid/graphics/drawable/Drawable;I)Z
    .locals 1

    if-eqz p1, :cond_1

    .line 42
    invoke-static {p1}, Landroidx/core/graphics/drawable/DrawableCompat;->isAutoMirrored(Landroid/graphics/drawable/Drawable;)Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 43
    :cond_0
    invoke-static {p1, p2}, Landroidx/core/graphics/drawable/DrawableCompat;->setLayoutDirection(Landroid/graphics/drawable/Drawable;I)Z

    const/4 p1, 0x1

    return p1

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return p1
.end method

.method static synthetic d()[I
    .locals 1

    .line 1
    sget-object v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->H:[I

    return-object v0
.end method

.method static synthetic e()Z
    .locals 1

    .line 1
    sget-boolean v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->I:Z

    return v0
.end method

.method private f()Landroid/view/View;
    .locals 4

    .line 6
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_1

    .line 7
    invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    .line 8
    invoke-virtual {p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-virtual {p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->j(Landroid/view/View;)Z

    move-result v3

    if-eqz v3, :cond_0

    return-object v2

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    return-object v0
.end method

.method static g(I)Ljava/lang/String;
    .locals 2

    and-int/lit8 v0, p0, 0x3

    const/4 v1, 0x3

    if-ne v0, v1, :cond_0

    const-string p0, "LEFT"

    return-object p0

    :cond_0
    and-int/lit8 v0, p0, 0x5

    const/4 v1, 0x5

    if-ne v0, v1, :cond_1

    const-string p0, "RIGHT"

    return-object p0

    .line 1
    :cond_1
    invoke-static {p0}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private g()Z
    .locals 4

    .line 3
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v0, :cond_1

    .line 4
    invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    check-cast v3, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 5
    invoke-static {v3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->c(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)Z

    move-result v3

    if-eqz v3, :cond_0

    const/4 v0, 0x1

    return v0

    :cond_0
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    return v1
.end method

.method private h()Z
    .locals 1

    .line 5
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private i()Landroid/graphics/drawable/Drawable;
    .locals 2

    .line 1
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->C:Landroid/graphics/drawable/Drawable;

    if-eqz v1, :cond_1

    .line 3
    invoke-direct {p0, v1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/graphics/drawable/Drawable;I)Z

    .line 4
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->C:Landroid/graphics/drawable/Drawable;

    return-object v0

    .line 5
    :cond_0
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->D:Landroid/graphics/drawable/Drawable;

    if-eqz v1, :cond_1

    .line 6
    invoke-direct {p0, v1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/graphics/drawable/Drawable;I)Z

    .line 7
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->D:Landroid/graphics/drawable/Drawable;

    return-object v0

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->E:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method private j()Landroid/graphics/drawable/Drawable;
    .locals 2

    .line 1
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->D:Landroid/graphics/drawable/Drawable;

    if-eqz v1, :cond_1

    .line 3
    invoke-direct {p0, v1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/graphics/drawable/Drawable;I)Z

    .line 4
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->D:Landroid/graphics/drawable/Drawable;

    return-object v0

    .line 5
    :cond_0
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->C:Landroid/graphics/drawable/Drawable;

    if-eqz v1, :cond_1

    .line 6
    invoke-direct {p0, v1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/graphics/drawable/Drawable;I)Z

    .line 7
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->C:Landroid/graphics/drawable/Drawable;

    return-object v0

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->F:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method private k()V
    .locals 1

    .line 1
    sget-boolean v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->J:Z

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->w:Landroid/graphics/drawable/Drawable;

    .line 3
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->j()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->x:Landroid/graphics/drawable/Drawable;

    return-void
.end method

.method static synthetic l(Landroid/view/View;)Z
    .locals 0

    .line 1
    invoke-static {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->n(Landroid/view/View;)Z

    move-result p0

    return p0
.end method

.method private static m(Landroid/view/View;)Z
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object p0

    const/4 v0, 0x0

    if-eqz p0, :cond_0

    .line 2
    invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getOpacity()I

    move-result p0

    const/4 v1, -0x1

    if-ne p0, v1, :cond_0

    const/4 v0, 0x1

    :cond_0
    return v0
.end method

.method private static n(Landroid/view/View;)Z
    .locals 2

    .line 1
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getImportantForAccessibility(Landroid/view/View;)I

    move-result v0

    const/4 v1, 0x4

    if-eq v0, v1, :cond_0

    .line 2
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getImportantForAccessibility(Landroid/view/View;)I

    move-result p0

    const/4 v0, 0x2

    if-eq p0, v0, :cond_0

    const/4 p0, 0x1

    goto :goto_0

    :cond_0
    const/4 p0, 0x0

    :goto_0
    return p0
.end method


# virtual methods
.method a()V
    .locals 9

    .line 77
    iget-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->q:Z

    if-nez v0, :cond_1

    .line 78
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v3

    const/4 v5, 0x3

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/4 v8, 0x0

    move-wide v1, v3

    .line 79
    invoke-static/range {v1 .. v8}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;

    move-result-object v0

    .line 80
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_0

    .line 81
    invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, v0}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 82
    :cond_0
    invoke-virtual {v0}, Landroid/view/MotionEvent;->recycle()V

    const/4 v0, 0x1

    .line 83
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->q:Z

    :cond_1
    return-void
.end method

.method public a(I)V
    .locals 3

    .line 73
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 74
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;)V

    return-void

    .line 75
    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "No drawer view found with gravity "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 76
    invoke-static {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public a(II)V
    .locals 3

    .line 9
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result v0

    .line 10
    invoke-static {p2, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I

    move-result v0

    const/4 v1, 0x3

    if-eq p2, v1, :cond_3

    const/4 v2, 0x5

    if-eq p2, v2, :cond_2

    const v2, 0x800003

    if-eq p2, v2, :cond_1

    const v2, 0x800005

    if-eq p2, v2, :cond_0

    goto :goto_0

    .line 11
    :cond_0
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->p:I

    goto :goto_0

    .line 12
    :cond_1
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->o:I

    goto :goto_0

    .line 13
    :cond_2
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->n:I

    goto :goto_0

    .line 14
    :cond_3
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->m:I

    :goto_0
    if-eqz p1, :cond_5

    if-ne v0, v1, :cond_4

    .line 15
    iget-object p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    goto :goto_1

    :cond_4
    iget-object p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    .line 16
    :goto_1
    invoke-virtual {p2}, Landroidx/customview/widget/ViewDragHelper;->cancel()V

    :cond_5
    const/4 p2, 0x1

    if-eq p1, p2, :cond_7

    const/4 p2, 0x2

    if-eq p1, p2, :cond_6

    goto :goto_2

    .line 17
    :cond_6
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_8

    .line 18
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->k(Landroid/view/View;)V

    goto :goto_2

    .line 19
    :cond_7
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_8

    .line 20
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;)V

    :cond_8
    :goto_2
    return-void
.end method

.method a(IILandroid/view/View;)V
    .locals 3

    .line 21
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p1}, Landroidx/customview/widget/ViewDragHelper;->getViewDragState()I

    move-result p1

    .line 22
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v0}, Landroidx/customview/widget/ViewDragHelper;->getViewDragState()I

    move-result v0

    const/4 v1, 0x2

    const/4 v2, 0x1

    if-eq p1, v2, :cond_2

    if-ne v0, v2, :cond_0

    goto :goto_0

    :cond_0
    if-eq p1, v1, :cond_3

    if-ne v0, v1, :cond_1

    goto :goto_1

    :cond_1
    const/4 v1, 0x0

    goto :goto_1

    :cond_2
    :goto_0
    const/4 v1, 0x1

    :cond_3
    :goto_1
    if-eqz p3, :cond_5

    if-nez p2, :cond_5

    .line 23
    invoke-virtual {p3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 24
    invoke-static {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result p2

    const/4 v0, 0x0

    cmpl-float p2, p2, v0

    if-nez p2, :cond_4

    .line 25
    invoke-virtual {p0, p3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(Landroid/view/View;)V

    goto :goto_2

    .line 26
    :cond_4
    invoke-static {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result p1

    const/high16 p2, 0x3f800000    # 1.0f

    cmpl-float p1, p1, p2

    if-nez p1, :cond_5

    .line 27
    invoke-virtual {p0, p3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->c(Landroid/view/View;)V

    .line 28
    :cond_5
    :goto_2
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->j:I

    if-eq v1, p1, :cond_6

    .line 29
    iput v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->j:I

    .line 30
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    if-eqz p1, :cond_6

    .line 31
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    sub-int/2addr p1, v2

    :goto_3
    if-ltz p1, :cond_6

    .line 32
    iget-object p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;

    invoke-interface {p2, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;->onDrawerStateChanged(I)V

    add-int/lit8 p1, p1, -0x1

    goto :goto_3

    :cond_6
    return-void
.end method

.method public a(Landroid/view/View;)V
    .locals 3

    .line 60
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 61
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 62
    iget-boolean v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->l:Z

    if-eqz v1, :cond_0

    const/4 p1, 0x0

    .line 63
    invoke-static {v0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;F)F

    const/4 p1, 0x0

    .line 64
    invoke-static {v0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;I)I

    goto :goto_0

    .line 65
    :cond_0
    invoke-static {v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result v1

    or-int/lit8 v1, v1, 0x4

    invoke-static {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;I)I

    const/4 v0, 0x3

    .line 66
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;I)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 67
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v1

    neg-int v1, v1

    .line 68
    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v2

    .line 69
    invoke-virtual {v0, p1, v1, v2}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    goto :goto_0

    .line 70
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v1

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v2

    invoke-virtual {v0, p1, v1, v2}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    .line 71
    :goto_0
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void

    .line 72
    :cond_2
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "View "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, " is not a sliding drawer"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method a(Landroid/view/View;F)V
    .locals 2

    .line 38
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 39
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    :goto_0
    if-ltz v0, :cond_0

    .line 40
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;

    invoke-interface {v1, p1, p2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;->onDrawerSlide(Landroid/view/View;F)V

    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method public a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;)V
    .locals 1
    .param p1    # Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    if-nez p1, :cond_0

    return-void

    .line 6
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    if-nez v0, :cond_1

    .line 7
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public a(Ljava/lang/Object;Z)V
    .locals 0

    .line 2
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->A:Ljava/lang/Object;

    .line 3
    iput-boolean p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->B:Z

    if-nez p2, :cond_0

    .line 4
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setWillNotDraw(Z)V

    .line 5
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->requestLayout()V

    return-void
.end method

.method a(Z)V
    .locals 9

    .line 44
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v2, v0, :cond_3

    .line 45
    invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 46
    invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v5

    check-cast v5, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 47
    invoke-virtual {p0, v4}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v6

    if-eqz v6, :cond_2

    if-eqz p1, :cond_0

    invoke-static {v5}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->c(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)Z

    move-result v6

    if-nez v6, :cond_0

    goto :goto_2

    .line 48
    :cond_0
    invoke-virtual {v4}, Landroid/view/View;->getWidth()I

    move-result v6

    const/4 v7, 0x3

    .line 49
    invoke-virtual {p0, v4, v7}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;I)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 50
    iget-object v7, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    neg-int v6, v6

    .line 51
    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v8

    .line 52
    invoke-virtual {v7, v4, v6, v8}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    move-result v4

    goto :goto_1

    .line 53
    :cond_1
    iget-object v6, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    .line 54
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v7

    invoke-virtual {v4}, Landroid/view/View;->getTop()I

    move-result v8

    .line 55
    invoke-virtual {v6, v4, v7, v8}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    move-result v4

    :goto_1
    or-int/2addr v3, v4

    .line 56
    invoke-static {v5, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;Z)Z

    :cond_2
    :goto_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 57
    :cond_3
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;->removeCallbacks()V

    .line 58
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;->removeCallbacks()V

    if-eqz v3, :cond_4

    .line 59
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    :cond_4
    return-void
.end method

.method a(Landroid/view/View;I)Z
    .locals 0

    .line 41
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e(Landroid/view/View;)I

    move-result p1

    and-int/2addr p1, p2

    if-ne p1, p2, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public addFocusables(Ljava/util/ArrayList;II)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Landroid/view/View;",
            ">;II)V"
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getDescendantFocusability()I

    move-result v0

    const/high16 v1, 0x60000

    if-ne v0, v1, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v2, v0, :cond_3

    .line 3
    invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 4
    invoke-virtual {p0, v4}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 5
    invoke-virtual {p0, v4}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h(Landroid/view/View;)Z

    move-result v5

    if-eqz v5, :cond_2

    .line 6
    invoke-virtual {v4, p1, p2, p3}, Landroid/view/View;->addFocusables(Ljava/util/ArrayList;II)V

    const/4 v3, 0x1

    goto :goto_1

    .line 7
    :cond_1
    iget-object v5, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->G:Ljava/util/ArrayList;

    invoke-virtual {v5, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_2
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_3
    if-nez v3, :cond_5

    .line 8
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->G:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    :goto_2
    if-ge v1, v0, :cond_5

    .line 9
    iget-object v2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->G:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Landroid/view/View;

    .line 10
    invoke-virtual {v2}, Landroid/view/View;->getVisibility()I

    move-result v3

    if-nez v3, :cond_4

    .line 11
    invoke-virtual {v2, p1, p2, p3}, Landroid/view/View;->addFocusables(Ljava/util/ArrayList;II)V

    :cond_4
    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    .line 12
    :cond_5
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->G:Ljava/util/ArrayList;

    invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V

    return-void
.end method

.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
    .locals 0

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 2
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->c()Landroid/view/View;

    move-result-object p2

    if-nez p2, :cond_1

    .line 3
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result p2

    if-eqz p2, :cond_0

    goto :goto_0

    :cond_0
    const/4 p2, 0x1

    .line 4
    invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p2, 0x4

    .line 5
    invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V

    .line 6
    :goto_1
    sget-boolean p2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->I:Z

    if-nez p2, :cond_2

    .line 7
    iget-object p2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$b;

    invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V

    :cond_2
    return-void
.end method

.method b(I)Landroid/view/View;
    .locals 4

    .line 17
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result v0

    .line 18
    invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I

    move-result p1

    and-int/lit8 p1, p1, 0x7

    .line 19
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_1

    .line 20
    invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    .line 21
    invoke-virtual {p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e(Landroid/view/View;)I

    move-result v3

    and-int/lit8 v3, v3, 0x7

    if-ne v3, p1, :cond_0

    return-object v2

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    return-object p1
.end method

.method public b()V
    .locals 1

    const/4 v0, 0x0

    .line 22
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Z)V

    return-void
.end method

.method b(Landroid/view/View;)V
    .locals 3

    .line 3
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 4
    invoke-static {v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result v1

    const/4 v2, 0x1

    and-int/2addr v1, v2

    if-ne v1, v2, :cond_1

    const/4 v1, 0x0

    .line 5
    invoke-static {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;I)I

    .line 6
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 7
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    sub-int/2addr v0, v2

    :goto_0
    if-ltz v0, :cond_0

    .line 8
    iget-object v2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;

    invoke-interface {v2, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;->onDrawerClosed(Landroid/view/View;)V

    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    .line 9
    :cond_0
    invoke-direct {p0, p1, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;Z)V

    .line 10
    invoke-virtual {p0}, Landroid/view/ViewGroup;->hasWindowFocus()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 11
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getRootView()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_1

    const/16 v0, 0x20

    .line 12
    invoke-virtual {p1, v0}, Landroid/view/View;->sendAccessibilityEvent(I)V

    :cond_1
    return-void
.end method

.method b(Landroid/view/View;F)V
    .locals 2

    .line 13
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 14
    invoke-static {v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result v1

    cmpl-float v1, p2, v1

    if-nez v1, :cond_0

    return-void

    .line 15
    :cond_0
    invoke-static {v0, p2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;F)F

    .line 16
    invoke-virtual {p0, p1, p2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;F)V

    return-void
.end method

.method public b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;)V
    .locals 1
    .param p1    # Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    if-nez p1, :cond_0

    return-void

    .line 1
    :cond_0
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    if-nez v0, :cond_1

    return-void

    .line 2
    :cond_1
    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method

.method public c(I)I
    .locals 3

    .line 1
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result v0

    const/4 v1, 0x3

    if-eq p1, v1, :cond_9

    const/4 v2, 0x5

    if-eq p1, v2, :cond_6

    const v2, 0x800003

    if-eq p1, v2, :cond_3

    const v2, 0x800005

    if-eq p1, v2, :cond_0

    goto :goto_4

    .line 2
    :cond_0
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->p:I

    if-eq p1, v1, :cond_1

    return p1

    :cond_1
    if-nez v0, :cond_2

    .line 3
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->n:I

    goto :goto_0

    :cond_2
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->m:I

    :goto_0
    if-eq p1, v1, :cond_c

    return p1

    .line 4
    :cond_3
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->o:I

    if-eq p1, v1, :cond_4

    return p1

    :cond_4
    if-nez v0, :cond_5

    .line 5
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->m:I

    goto :goto_1

    :cond_5
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->n:I

    :goto_1
    if-eq p1, v1, :cond_c

    return p1

    .line 6
    :cond_6
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->n:I

    if-eq p1, v1, :cond_7

    return p1

    :cond_7
    if-nez v0, :cond_8

    .line 7
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->p:I

    goto :goto_2

    :cond_8
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->o:I

    :goto_2
    if-eq p1, v1, :cond_c

    return p1

    .line 8
    :cond_9
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->m:I

    if-eq p1, v1, :cond_a

    return p1

    :cond_a
    if-nez v0, :cond_b

    .line 9
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->o:I

    goto :goto_3

    :cond_b
    iget p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->p:I

    :goto_3
    if-eq p1, v1, :cond_c

    return p1

    :cond_c
    :goto_4
    const/4 p1, 0x0

    return p1
.end method

.method c()Landroid/view/View;
    .locals 5

    .line 20
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_1

    .line 21
    invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    .line 22
    invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    check-cast v3, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 23
    invoke-static {v3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result v3

    const/4 v4, 0x1

    and-int/2addr v3, v4

    if-ne v3, v4, :cond_0

    return-object v2

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    return-object v0
.end method

.method c(Landroid/view/View;)V
    .locals 3

    .line 10
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 11
    invoke-static {v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result v1

    const/4 v2, 0x1

    and-int/2addr v1, v2

    if-nez v1, :cond_2

    .line 12
    invoke-static {v0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;I)I

    .line 13
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    if-eqz v0, :cond_0

    .line 14
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    sub-int/2addr v0, v2

    :goto_0
    if-ltz v0, :cond_0

    .line 15
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->s:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;

    invoke-interface {v1, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;->onDrawerOpened(Landroid/view/View;)V

    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    .line 16
    :cond_0
    invoke-direct {p0, p1, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;Z)V

    .line 17
    invoke-virtual {p0}, Landroid/view/ViewGroup;->hasWindowFocus()Z

    move-result v0

    if-eqz v0, :cond_1

    const/16 v0, 0x20

    .line 18
    invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->sendAccessibilityEvent(I)V

    .line 19
    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->requestFocus()Z

    :cond_2
    return-void
.end method

.method protected checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
    .locals 1

    .line 1
    instance-of v0, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    if-eqz v0, :cond_0

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public computeScroll()V
    .locals 4

    .line 1
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v0, :cond_0

    .line 2
    invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    check-cast v3, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    invoke-static {v3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result v3

    .line 3
    invoke-static {v1, v3}, Ljava/lang/Math;->max(FF)F

    move-result v1

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 4
    :cond_0
    iput v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->d:F

    .line 5
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroidx/customview/widget/ViewDragHelper;->continueSettling(Z)Z

    move-result v0

    iget-object v2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v2, v1}, Landroidx/customview/widget/ViewDragHelper;->continueSettling(Z)Z

    move-result v1

    or-int/2addr v0, v1

    if-eqz v0, :cond_1

    .line 6
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V

    :cond_1
    return-void
.end method

.method public d(Landroid/view/View;)I
    .locals 3

    .line 2
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    iget p1, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a:I

    .line 4
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->c(I)I

    move-result p1

    return p1

    .line 5
    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "View "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, " is not a drawer"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public d(I)Ljava/lang/CharSequence;
    .locals 1
    .annotation build Landroidx/annotation/Nullable;
    .end annotation

    .line 6
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result v0

    .line 7
    invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I

    move-result p1

    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    .line 8
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->y:Ljava/lang/CharSequence;

    return-object p1

    :cond_0
    const/4 v0, 0x5

    if-ne p1, v0, :cond_1

    .line 9
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->z:Ljava/lang/CharSequence;

    return-object p1

    :cond_1
    const/4 p1, 0x0

    return-object p1
.end method

.method protected drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
    .locals 14

    move-object v0, p0

    move-object v1, p1

    move-object/from16 v2, p2

    .line 1
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I

    move-result v3

    .line 2
    invoke-virtual {p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g(Landroid/view/View;)Z

    move-result v4

    .line 3
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v5

    .line 4
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    move-result v6

    const/4 v7, 0x3

    const/4 v8, 0x0

    if-eqz v4, :cond_4

    .line 5
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v9

    const/4 v10, 0x0

    const/4 v11, 0x0

    :goto_0
    if-ge v10, v9, :cond_3

    .line 6
    invoke-virtual {p0, v10}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v12

    if-eq v12, v2, :cond_2

    .line 7
    invoke-virtual {v12}, Landroid/view/View;->getVisibility()I

    move-result v13

    if-nez v13, :cond_2

    .line 8
    invoke-static {v12}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->m(Landroid/view/View;)Z

    move-result v13

    if-eqz v13, :cond_2

    invoke-virtual {p0, v12}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v13

    if-eqz v13, :cond_2

    .line 9
    invoke-virtual {v12}, Landroid/view/View;->getHeight()I

    move-result v13

    if-ge v13, v3, :cond_0

    goto :goto_1

    .line 10
    :cond_0
    invoke-virtual {p0, v12, v7}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;I)Z

    move-result v13

    if-eqz v13, :cond_1

    .line 11
    invoke-virtual {v12}, Landroid/view/View;->getRight()I

    move-result v12

    if-le v12, v11, :cond_2

    move v11, v12

    goto :goto_1

    .line 12
    :cond_1
    invoke-virtual {v12}, Landroid/view/View;->getLeft()I

    move-result v12

    if-ge v12, v5, :cond_2

    move v5, v12

    :cond_2
    :goto_1
    add-int/lit8 v10, v10, 0x1

    goto :goto_0

    .line 13
    :cond_3
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I

    move-result v3

    invoke-virtual {p1, v11, v8, v5, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z

    move v8, v11

    .line 14
    :cond_4
    invoke-super/range {p0 .. p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    move-result v9

    .line 15
    invoke-virtual {p1, v6}, Landroid/graphics/Canvas;->restoreToCount(I)V

    .line 16
    iget v3, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->d:F

    const/4 v6, 0x0

    cmpl-float v10, v3, v6

    if-lez v10, :cond_5

    if-eqz v4, :cond_5

    .line 17
    iget v2, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->c:I

    const/high16 v4, -0x1000000

    and-int/2addr v4, v2

    ushr-int/lit8 v4, v4, 0x18

    int-to-float v4, v4

    mul-float v4, v4, v3

    float-to-int v3, v4

    shl-int/lit8 v3, v3, 0x18

    const v4, 0xffffff

    and-int/2addr v2, v4

    or-int/2addr v2, v3

    .line 18
    iget-object v3, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e:Landroid/graphics/Paint;

    invoke-virtual {v3, v2}, Landroid/graphics/Paint;->setColor(I)V

    int-to-float v2, v8

    const/4 v3, 0x0

    int-to-float v4, v5

    .line 19
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I

    move-result v5

    int-to-float v5, v5

    iget-object v6, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->e:Landroid/graphics/Paint;

    move-object v1, p1

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    goto/16 :goto_2

    .line 20
    :cond_5
    iget-object v3, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->w:Landroid/graphics/drawable/Drawable;

    const/high16 v4, 0x437f0000    # 255.0f

    const/high16 v5, 0x3f800000    # 1.0f

    if-eqz v3, :cond_6

    .line 21
    invoke-virtual {p0, v2, v7}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;I)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 22
    iget-object v3, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->w:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v3

    .line 23
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getRight()I

    move-result v7

    .line 24
    iget-object v8, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v8}, Landroidx/customview/widget/ViewDragHelper;->getEdgeSize()I

    move-result v8

    int-to-float v10, v7

    int-to-float v8, v8

    div-float/2addr v10, v8

    .line 25
    invoke-static {v10, v5}, Ljava/lang/Math;->min(FF)F

    move-result v5

    invoke-static {v6, v5}, Ljava/lang/Math;->max(FF)F

    move-result v5

    .line 26
    iget-object v6, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->w:Landroid/graphics/drawable/Drawable;

    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTop()I

    move-result v8

    add-int/2addr v3, v7

    .line 27
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getBottom()I

    move-result v2

    .line 28
    invoke-virtual {v6, v7, v8, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 29
    iget-object v2, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->w:Landroid/graphics/drawable/Drawable;

    mul-float v5, v5, v4

    float-to-int v3, v5

    invoke-virtual {v2, v3}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 30
    iget-object v2, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->w:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    goto :goto_2

    .line 31
    :cond_6
    iget-object v3, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->x:Landroid/graphics/drawable/Drawable;

    if-eqz v3, :cond_7

    const/4 v3, 0x5

    .line 32
    invoke-virtual {p0, v2, v3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;I)Z

    move-result v3

    if-eqz v3, :cond_7

    .line 33
    iget-object v3, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->x:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I

    move-result v3

    .line 34
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getLeft()I

    move-result v7

    .line 35
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v8

    sub-int/2addr v8, v7

    .line 36
    iget-object v10, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v10}, Landroidx/customview/widget/ViewDragHelper;->getEdgeSize()I

    move-result v10

    int-to-float v8, v8

    int-to-float v10, v10

    div-float/2addr v8, v10

    .line 37
    invoke-static {v8, v5}, Ljava/lang/Math;->min(FF)F

    move-result v5

    invoke-static {v6, v5}, Ljava/lang/Math;->max(FF)F

    move-result v5

    .line 38
    iget-object v6, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->x:Landroid/graphics/drawable/Drawable;

    sub-int v3, v7, v3

    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTop()I

    move-result v8

    .line 39
    invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getBottom()I

    move-result v2

    .line 40
    invoke-virtual {v6, v3, v8, v7, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 41
    iget-object v2, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->x:Landroid/graphics/drawable/Drawable;

    mul-float v5, v5, v4

    float-to-int v3, v5

    invoke-virtual {v2, v3}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V

    .line 42
    iget-object v2, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->x:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    :cond_7
    :goto_2
    return v9
.end method

.method e(Landroid/view/View;)I
    .locals 1

    .line 2
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    iget p1, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a:I

    .line 3
    invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result v0

    invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I

    move-result p1

    return p1
.end method

.method public e(I)Z
    .locals 0

    .line 4
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 5
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h(Landroid/view/View;)Z

    move-result p1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method f(Landroid/view/View;)F
    .locals 0

    .line 1
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    invoke-static {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result p1

    return p1
.end method

.method public f(I)V
    .locals 3

    .line 2
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->k(Landroid/view/View;)V

    return-void

    .line 4
    :cond_0
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "No drawer view found with gravity "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 5
    invoke-static {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g(I)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method g(Landroid/view/View;)Z
    .locals 0

    .line 2
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    iget p1, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a:I

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method protected generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
    .locals 2

    .line 1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    const/4 v1, -0x1

    invoke-direct {v0, v1, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;-><init>(II)V

    return-object v0
.end method

.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
    .locals 2

    .line 2
    new-instance v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-object v0
.end method

.method protected generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
    .locals 1

    .line 1
    instance-of v0, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    if-eqz v0, :cond_0

    new-instance v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    invoke-direct {v0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;-><init>(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)V

    goto :goto_0

    :cond_0
    instance-of v0, p1, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v0, :cond_1

    new-instance v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;

    invoke-direct {v0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V

    goto :goto_0

    :cond_1
    new-instance v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    invoke-direct {v0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;-><init>(Landroid/view/ViewGroup$LayoutParams;)V

    :goto_0
    return-object v0
.end method

.method public getDrawerElevation()F
    .locals 1

    .line 1
    sget-boolean v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->J:Z

    if-eqz v0, :cond_0

    .line 2
    iget v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b:F

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public getStatusBarBackgroundDrawable()Landroid/graphics/drawable/Drawable;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    return-object v0
.end method

.method public h(Landroid/view/View;)Z
    .locals 3

    .line 1
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 2
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 3
    invoke-static {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result p1

    const/4 v0, 0x1

    and-int/2addr p1, v0

    if-ne p1, v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0

    .line 4
    :cond_1
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "View "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, " is not a drawer"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method i(Landroid/view/View;)Z
    .locals 2

    .line 9
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    iget v0, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a:I

    .line 10
    invoke-static {p1}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I

    move-result p1

    .line 11
    invoke-static {v0, p1}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I

    move-result p1

    and-int/lit8 v0, p1, 0x3

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    return v1

    :cond_0
    and-int/lit8 p1, p1, 0x5

    if-eqz p1, :cond_1

    return v1

    :cond_1
    const/4 p1, 0x0

    return p1
.end method

.method public j(Landroid/view/View;)Z
    .locals 3

    .line 9
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 10
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    invoke-static {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result p1

    const/4 v0, 0x0

    cmpl-float p1, p1, v0

    if-lez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1

    .line 11
    :cond_1
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "View "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, " is not a drawer"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public k(Landroid/view/View;)V
    .locals 3

    .line 4
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 5
    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 6
    iget-boolean v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->l:Z

    if-eqz v1, :cond_0

    const/high16 v1, 0x3f800000    # 1.0f

    .line 7
    invoke-static {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;F)F

    const/4 v1, 0x1

    .line 8
    invoke-static {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;I)I

    .line 9
    invoke-direct {p0, p1, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;Z)V

    goto :goto_0

    .line 10
    :cond_0
    invoke-static {v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result v1

    or-int/lit8 v1, v1, 0x2

    invoke-static {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;I)I

    const/4 v0, 0x3

    .line 11
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;I)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 12
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    const/4 v1, 0x0

    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v2

    invoke-virtual {v0, p1, v1, v2}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    goto :goto_0

    .line 13
    :cond_1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v1

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v2

    sub-int/2addr v1, v2

    .line 14
    invoke-virtual {p1}, Landroid/view/View;->getTop()I

    move-result v2

    .line 15
    invoke-virtual {v0, p1, v1, v2}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z

    .line 16
    :goto_0
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void

    .line 17
    :cond_2
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "View "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p1, " is not a sliding drawer"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method protected onAttachedToWindow()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->l:Z

    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    .line 1
    invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->l:Z

    return-void
.end method

.method public onDraw(Landroid/graphics/Canvas;)V
    .locals 4

    .line 1
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onDraw(Landroid/graphics/Canvas;)V

    .line 2
    iget-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->B:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    if-eqz v0, :cond_0

    .line 3
    sget-object v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->K:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;

    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->A:Ljava/lang/Object;

    invoke-interface {v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$c;->a(Ljava/lang/Object;)I

    move-result v0

    if-lez v0, :cond_0

    .line 4
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I

    move-result v2

    const/4 v3, 0x0

    invoke-virtual {v1, v3, v3, v2, v0}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V

    .line 5
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V

    :cond_0
    return-void
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 6

    .line 1
    invoke-static {p1}, Landroidx/core/view/MotionEventCompat;->getActionMasked(Landroid/view/MotionEvent;)I

    move-result v0

    .line 2
    iget-object v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v1, p1}, Landroidx/customview/widget/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    iget-object v2, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    .line 3
    invoke-virtual {v2, p1}, Landroidx/customview/widget/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v2

    or-int/2addr v1, v2

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v0, :cond_3

    if-eq v0, v2, :cond_1

    const/4 p1, 0x2

    const/4 v4, 0x3

    if-eq v0, p1, :cond_0

    if-eq v0, v4, :cond_1

    goto :goto_0

    .line 4
    :cond_0
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {p1, v4}, Landroidx/customview/widget/ViewDragHelper;->checkTouchSlop(I)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 5
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;->removeCallbacks()V

    .line 6
    iget-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;

    invoke-virtual {p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$j;->removeCallbacks()V

    goto :goto_0

    .line 7
    :cond_1
    invoke-virtual {p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Z)V

    .line 8
    iput-boolean v3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->q:Z

    :cond_2
    :goto_0
    const/4 p1, 0x0

    goto :goto_2

    .line 9
    :cond_3
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 10
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    .line 11
    iput v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->t:F

    .line 12
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->u:F

    .line 13
    iget v4, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->d:F

    const/4 v5, 0x0

    cmpl-float v4, v4, v5

    if-lez v4, :cond_4

    .line 14
    iget-object v4, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    float-to-int v0, v0

    float-to-int p1, p1

    invoke-virtual {v4, v0, p1}, Landroidx/customview/widget/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_4

    .line 15
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g(Landroid/view/View;)Z

    move-result p1

    if-eqz p1, :cond_4

    const/4 p1, 0x1

    goto :goto_1

    :cond_4
    const/4 p1, 0x0

    .line 16
    :goto_1
    iput-boolean v3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->q:Z

    :goto_2
    if-nez v1, :cond_6

    if-nez p1, :cond_6

    .line 17
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g()Z

    move-result p1

    if-nez p1, :cond_6

    iget-boolean p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->q:Z

    if-eqz p1, :cond_5

    goto :goto_3

    :cond_5
    const/4 v2, 0x0

    :cond_6
    :goto_3
    return v2
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->h()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p2}, Landroid/view/KeyEvent;->startTracking()V

    const/4 p1, 0x1

    return p1

    .line 3
    :cond_0
    invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method public onKeyUp(ILandroid/view/KeyEvent;)Z
    .locals 1

    const/4 v0, 0x4

    if-ne p1, v0, :cond_2

    .line 1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 2
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->d(Landroid/view/View;)I

    move-result p2

    if-nez p2, :cond_0

    .line 3
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b()V

    :cond_0
    if-eqz p1, :cond_1

    const/4 p1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_0
    return p1

    .line 4
    :cond_2
    invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onKeyUp(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method protected onLayout(ZIIII)V
    .locals 16

    move-object/from16 v0, p0

    const/4 v1, 0x1

    .line 1
    iput-boolean v1, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->k:Z

    sub-int v2, p4, p2

    .line 2
    invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v3

    const/4 v5, 0x0

    :goto_0
    if-ge v5, v3, :cond_b

    .line 3
    invoke-virtual {v0, v5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v6

    .line 4
    invoke-virtual {v6}, Landroid/view/View;->getVisibility()I

    move-result v7

    const/16 v8, 0x8

    if-ne v7, v8, :cond_0

    goto/16 :goto_6

    .line 5
    :cond_0
    invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v7

    check-cast v7, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 6
    invoke-virtual {v0, v6}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g(Landroid/view/View;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 7
    iget v8, v7, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    iget v9, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    .line 8
    invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I

    move-result v10

    add-int/2addr v10, v8

    iget v7, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    .line 9
    invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I

    move-result v11

    add-int/2addr v7, v11

    .line 10
    invoke-virtual {v6, v8, v9, v10, v7}, Landroid/view/View;->layout(IIII)V

    goto/16 :goto_6

    .line 11
    :cond_1
    invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I

    move-result v8

    .line 12
    invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I

    move-result v9

    const/4 v10, 0x3

    .line 13
    invoke-virtual {v0, v6, v10}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Landroid/view/View;I)Z

    move-result v10

    if-eqz v10, :cond_2

    neg-int v10, v8

    int-to-float v11, v8

    .line 14
    invoke-static {v7}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result v12

    mul-float v12, v12, v11

    float-to-int v12, v12

    add-int/2addr v10, v12

    add-int v12, v8, v10

    int-to-float v12, v12

    div-float/2addr v12, v11

    goto :goto_1

    :cond_2
    int-to-float v10, v8

    .line 15
    invoke-static {v7}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result v11

    mul-float v11, v11, v10

    float-to-int v11, v11

    sub-int v11, v2, v11

    sub-int v12, v2, v11

    int-to-float v12, v12

    div-float/2addr v12, v10

    move v10, v11

    .line 16
    :goto_1
    invoke-static {v7}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result v11

    cmpl-float v11, v12, v11

    if-eqz v11, :cond_3

    const/4 v11, 0x1

    goto :goto_2

    :cond_3
    const/4 v11, 0x0

    .line 17
    :goto_2
    iget v13, v7, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a:I

    and-int/lit8 v13, v13, 0x70

    const/16 v14, 0x10

    if-eq v13, v14, :cond_5

    const/16 v14, 0x50

    if-eq v13, v14, :cond_4

    .line 18
    iget v13, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v8, v10

    add-int/2addr v9, v13

    invoke-virtual {v6, v10, v13, v8, v9}, Landroid/view/View;->layout(IIII)V

    goto :goto_4

    :cond_4
    sub-int v9, p5, p3

    .line 19
    iget v13, v7, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int v13, v9, v13

    .line 20
    invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I

    move-result v14

    sub-int/2addr v13, v14

    add-int/2addr v8, v10

    iget v14, v7, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int/2addr v9, v14

    .line 21
    invoke-virtual {v6, v10, v13, v8, v9}, Landroid/view/View;->layout(IIII)V

    goto :goto_4

    :cond_5
    sub-int v13, p5, p3

    sub-int v14, v13, v9

    .line 22
    div-int/lit8 v14, v14, 0x2

    .line 23
    iget v15, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    if-ge v14, v15, :cond_6

    move v14, v15

    goto :goto_3

    :cond_6
    add-int v15, v14, v9

    .line 24
    iget v1, v7, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int v4, v13, v1

    if-le v15, v4, :cond_7

    sub-int/2addr v13, v1

    sub-int v14, v13, v9

    :cond_7
    :goto_3
    add-int/2addr v8, v10

    add-int/2addr v9, v14

    .line 25
    invoke-virtual {v6, v10, v14, v8, v9}, Landroid/view/View;->layout(IIII)V

    :goto_4
    if-eqz v11, :cond_8

    .line 26
    invoke-virtual {v0, v6, v12}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(Landroid/view/View;F)V

    .line 27
    :cond_8
    invoke-static {v7}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)F

    move-result v1

    const/4 v4, 0x0

    cmpl-float v1, v1, v4

    if-lez v1, :cond_9

    const/4 v1, 0x0

    goto :goto_5

    :cond_9
    const/4 v1, 0x4

    .line 28
    :goto_5
    invoke-virtual {v6}, Landroid/view/View;->getVisibility()I

    move-result v4

    if-eq v4, v1, :cond_a

    .line 29
    invoke-virtual {v6, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_a
    :goto_6
    add-int/lit8 v5, v5, 0x1

    const/4 v1, 0x1

    goto/16 :goto_0

    :cond_b
    const/4 v1, 0x0

    .line 30
    iput-boolean v1, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->k:Z

    .line 31
    iput-boolean v1, v0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->l:Z

    return-void
.end method

.method protected onMeasure(II)V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getSuggestedMinimumWidth()I

    move-result v0

    invoke-static {v0, p1}, Landroid/view/ViewGroup;->getDefaultSize(II)I

    move-result v0

    .line 2
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getSuggestedMinimumHeight()I

    move-result v1

    invoke-static {v1, p2}, Landroid/view/ViewGroup;->getDefaultSize(II)I

    move-result v1

    .line 3
    invoke-virtual {p0, v0, v1}, Landroid/view/ViewGroup;->setMeasuredDimension(II)V

    .line 4
    invoke-virtual {p0, p1, p2}, Landroid/view/ViewGroup;->measureChildren(II)V

    return-void
.end method

.method protected onRestoreInstanceState(Landroid/os/Parcelable;)V
    .locals 3

    .line 1
    instance-of v0, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;

    if-nez v0, :cond_0

    .line 2
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V

    return-void

    .line 3
    :cond_0
    check-cast p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;

    .line 4
    invoke-virtual {p1}, Landroid/view/View$BaseSavedState;->getSuperState()Landroid/os/Parcelable;

    move-result-object v0

    invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V

    .line 5
    iget v0, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->a:I

    if-eqz v0, :cond_1

    .line 6
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 7
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->k(Landroid/view/View;)V

    .line 8
    :cond_1
    iget v0, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->b:I

    const/4 v1, 0x3

    if-eq v0, v1, :cond_2

    .line 9
    invoke-virtual {p0, v0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(II)V

    .line 10
    :cond_2
    iget v0, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->c:I

    if-eq v0, v1, :cond_3

    const/4 v2, 0x5

    .line 11
    invoke-virtual {p0, v0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(II)V

    .line 12
    :cond_3
    iget v0, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->d:I

    if-eq v0, v1, :cond_4

    const v2, 0x800003

    .line 13
    invoke-virtual {p0, v0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(II)V

    .line 14
    :cond_4
    iget p1, p1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->e:I

    if-eq p1, v1, :cond_5

    const v0, 0x800005

    .line 15
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(II)V

    :cond_5
    return-void
.end method

.method public onRtlPropertiesChanged(I)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->k()V

    return-void
.end method

.method protected onSaveInstanceState()Landroid/os/Parcelable;
    .locals 9

    .line 1
    invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable;

    move-result-object v0

    .line 2
    new-instance v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;

    invoke-direct {v1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;-><init>(Landroid/os/Parcelable;)V

    .line 3
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v0, :cond_4

    .line 4
    invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v4

    .line 5
    invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v4

    check-cast v4, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;

    .line 6
    invoke-static {v4}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result v5

    const/4 v6, 0x1

    if-ne v5, v6, :cond_0

    const/4 v5, 0x1

    goto :goto_1

    :cond_0
    const/4 v5, 0x0

    .line 7
    :goto_1
    invoke-static {v4}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;)I

    move-result v7

    const/4 v8, 0x2

    if-ne v7, v8, :cond_1

    goto :goto_2

    :cond_1
    const/4 v6, 0x0

    :goto_2
    if-nez v5, :cond_3

    if-eqz v6, :cond_2

    goto :goto_3

    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 8
    :cond_3
    :goto_3
    iget v0, v4, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$g;->a:I

    iput v0, v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->a:I

    .line 9
    :cond_4
    iget v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->m:I

    iput v0, v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->b:I

    .line 10
    iget v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->n:I

    iput v0, v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->c:I

    .line 11
    iget v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->o:I

    iput v0, v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->d:I

    .line 12
    iget v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->p:I

    iput v0, v1, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$h;->e:I

    return-object v1
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v0, p1}, Landroidx/customview/widget/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)V

    .line 2
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v0, p1}, Landroidx/customview/widget/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)V

    .line 3
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    and-int/lit16 v0, v0, 0xff

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_4

    if-eq v0, v2, :cond_1

    const/4 p1, 0x3

    if-eq v0, p1, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    invoke-virtual {p0, v2}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Z)V

    .line 5
    iput-boolean v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->q:Z

    goto :goto_0

    .line 6
    :cond_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 7
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    .line 8
    iget-object v3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    float-to-int v4, v0

    float-to-int v5, p1

    invoke-virtual {v3, v4, v5}, Landroidx/customview/widget/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 9
    invoke-virtual {p0, v3}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->g(Landroid/view/View;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 10
    iget v3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->t:F

    sub-float/2addr v0, v3

    .line 11
    iget v3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->u:F

    sub-float/2addr p1, v3

    .line 12
    iget-object v3, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->f:Landroidx/customview/widget/ViewDragHelper;

    invoke-virtual {v3}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I

    move-result v3

    mul-float v0, v0, v0

    mul-float p1, p1, p1

    add-float/2addr v0, p1

    mul-int v3, v3, v3

    int-to-float p1, v3

    cmpg-float p1, v0, p1

    if-gez p1, :cond_2

    .line 13
    invoke-virtual {p0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->c()Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 14
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->d(Landroid/view/View;)I

    move-result p1

    const/4 v0, 0x2

    if-ne p1, v0, :cond_3

    :cond_2
    const/4 v1, 0x1

    .line 15
    :cond_3
    invoke-virtual {p0, v1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Z)V

    goto :goto_0

    .line 16
    :cond_4
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 17
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result p1

    .line 18
    iput v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->t:F

    .line 19
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->u:F

    .line 20
    iput-boolean v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->q:Z

    :goto_0
    return v2
.end method

.method public requestDisallowInterceptTouchEvent(Z)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    .line 2
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Z)V

    :cond_0
    return-void
.end method

.method public requestLayout()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->k:Z

    if-nez v0, :cond_0

    .line 2
    invoke-super {p0}, Landroid/view/ViewGroup;->requestLayout()V

    :cond_0
    return-void
.end method

.method public setDrawerElevation(F)V
    .locals 2

    .line 1
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b:F

    const/4 p1, 0x0

    .line 2
    :goto_0
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    if-ge p1, v0, :cond_1

    .line 3
    invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 4
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->i(Landroid/view/View;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 5
    iget v1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b:F

    invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V

    :cond_0
    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method public setDrawerListener(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;)V
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->r:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->b(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;)V

    :cond_0
    if-eqz p1, :cond_1

    .line 3
    invoke-virtual {p0, p1}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;)V

    .line 4
    :cond_1
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->r:Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout$f;

    return-void
.end method

.method public setDrawerLockMode(I)V
    .locals 1

    const/4 v0, 0x3

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(II)V

    const/4 v0, 0x5

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->a(II)V

    return-void
.end method

.method public setScrimColor(I)V
    .locals 0
    .param p1    # I
        .annotation build Landroidx/annotation/ColorInt;
        .end annotation
    .end param

    .line 1
    iput p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->c:I

    .line 2
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void
.end method

.method public setStatusBarBackground(I)V
    .locals 1

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    .line 4
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void
.end method

.method public setStatusBarBackground(Landroid/graphics/drawable/Drawable;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    .line 2
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void
.end method

.method public setStatusBarBackgroundColor(I)V
    .locals 1
    .param p1    # I
        .annotation build Landroidx/annotation/ColorInt;
        .end annotation
    .end param

    .line 1
    new-instance v0, Landroid/graphics/drawable/ColorDrawable;

    invoke-direct {v0, p1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    iput-object v0, p0, Lcom/jecelyin/editor/v2/widget/TranslucentDrawerLayout;->v:Landroid/graphics/drawable/Drawable;

    .line 2
    invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void
.end method
